/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cz.uhk.ppro.traveler.logic;

import cz.uhk.ppro.traveler.entity.TUser;
import net.sourceforge.stripes.action.ActionBeanContext;

/**
 *
 * @author Martin Soušek
 */
public class TravelerActionBeanContext extends ActionBeanContext {

    public void setCurrentUser(TUser tuser) {
        
        getRequest().getSession().setAttribute("currentUser", tuser);
    }
    
    public TUser getCurrentUser() {
        
        return (TUser) getRequest().getSession().getAttribute("currentUser");
    }
}
